<?php
function sanitize(&$array) {
	foreach ($array as &$data) {
		if (!is_array($data)) { // If it's not an array, clean it
			$data=stripslashes($data);
			return $array;
		}
		else { // If it IS an array, call the function on it
			sanitize($data);
		}
	}
}
?>
